package cn.patient.pp.module.report.controller.admin.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.patient.pp.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.patient.pp.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 上报精神病患者信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PatientInfoPageReqVO extends PageParam {

    @Schema(description = "患者姓名", example = "芋艿")
    private String patientName;

    @Schema(description = "身份证号码")
    private String idNumber;

    @Schema(description = "性别（1：男，0：女）")
    private String gender;

    @Schema(description = "出生日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] birthDate;

    @Schema(description = "家庭住址")
    private String address;

    @Schema(description = "联系人姓名")
    private String contactPerson;

    @Schema(description = "联系方式")
    private String contactPhone;

    @Schema(description = "诊断状态：2-排除，1-确诊", example = "1")
    private String diagnosisStatus;

    @Schema(description = "所属行政区划id", example = "11159")
    private Long deptId;

    @Schema(description = "上报状态：1-已上报县级，2-待上报，3-上报省厅成功", example = "2")
    private String reportStatus;
    @Schema(description = "上报时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] reportTime;

    @Schema(description = "上报响应信息（如失败原因）")
    private String reportResponse;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;
    @Schema(description = "原始部门id", example = "28910")
    private List<Long> orginDeptId;

}